#!/bin/bash

DATADIR=@PKGDATADIR@

if [[ "$(id -u)" != "0" ]]; then
    if [ -e "/usr/bin/gksu" ]; then
        exec gksu --description "GameConqueror" "python -OO $DATADIR/GameConqueror.py"
    else
        exec beesu - "python -OO $DATADIR/GameConqueror.py"
    fi
else
    exec python -OO "$DATADIR/GameConqueror.py"
fi
